package cn.zhxu.crud.service;

public interface ServiceHook {

    default boolean onFindById(Object entity) { return true; };

    default void onCreating(Object entity, Object input) {};

    default void onUpdating(Object entity, Object input) {};

    default void onSaving(Object entity, Object input) {};

    default void onSaved(Object entity, Object input) {};

    default void onDeleting(Object entity) {};

    default void onDeleted(Object entity) {};

}
